﻿<%@ Page Title="Media Mag International | Archive" Language="C#" MasterPageFile="~/MasterPage.master"
    AutoEventWireup="true" CodeFile="Archive.aspx.cs" Inherits="Archive" EnableViewState="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" href="/contents/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
    <script type="text/javascript" src="/contents/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="/contents/jquery-ui-1.8.16.custom.min.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="text-align: left; padding: 0px 15px;">
        <h2>
            Archive</h2>
        <br />
        <asp:Repeater runat="server" ID="NewsThumbnails">
            <HeaderTemplate>
                <ul class="archive-list-parent">
            </HeaderTemplate>
            <ItemTemplate>
                <li>
                    <h3 class="archive-list-heading">
                        <asp:Literal runat="server" ID="ArchiveHeadingLiteral" Text='<%# Eval("Key")%>'></asp:Literal>
                    </h3>
                    <asp:Repeater runat="server" ID="NewsThumbnailsDetails" DataSource='<%# Eval("Values") %>'
                        OnItemDataBound="NewsThumbnails_ItemDataBound">
                        <HeaderTemplate>
                            <ul class="archive-list">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <li><a id="news_image" class="news-thumbnail" runat="server" href='#'>
                                <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("FarmanImage") %>' />
                            </a>
                                <br />
                                <a id="A1" runat="server" href='#'><span class="magazine-date">
                                    <asp:Literal runat="server" ID="Literal2" Text='<%# Bind("CurrentDate", "{0:dd - MMM - yyyy}") %>'></asp:Literal></span></a></li>
                        </ItemTemplate>
                        <FooterTemplate>
                            </ul>
                        </FooterTemplate>
                    </asp:Repeater>
                </li>
            </ItemTemplate>
            <FooterTemplate>
                </ul>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
